using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace OpenEPN
{
    public partial class fen_Verrou : Form
    {
        public fen_Verrou()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            bool passok = false;
            foreach (DA.General.UserAppl _userappl in BU.General.UsersApplManager.Instance.GetUsersAppl())
            {
                if (_userappl.Pass.ToUpper() == txtboxPassword.Text.ToUpper())
                {
                    passok = true;
                    this.Close();
                }
            }

            if (passok == false)
            {
                MessageBox.Show("Le mot de passe est incorrect!");
            }
        }
    }
}